/// <reference path="./namespacetest.ts" />

//3斜杠告诉编译器文件之间的关联，都是一个namespace

//namespace怎么import?
// import LettersOnlyValidator from "./namespacetest";
// import StringValidator from "./namespacetest";

namespace Validation2 {
  const lettersRegexp = /^[A-Za-z]+$/;
  export class LettersOnlyValidator implements StringValidator {
      isAcceptable(s: string) {
          return lettersRegexp.test(s);
      }
  }
}

